package ai.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DateUtils {
	public static DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
	public static DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH-mm-ss");

	public static String LDTFormatter1(LocalDateTime localDateTime) {
		return localDateTime.format(formatter1);
	}

	public static String LDTFormatter2(LocalDateTime localDateTime) {
		return localDateTime.format(formatter2);
	}

	public static String getNowStr1() {
		return LDTFormatter1(LocalDateTime.now());
	}

	public static String getNowStr2() {
		return LDTFormatter2(LocalDateTime.now());
	}
}
